package com.songshuai.webapi.permission.dao;

import com.songshuai.webapi.permission.model.YxDepartmentLeader;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface YxDepartmentLeaderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(YxDepartmentLeader record);

    int insertSelective(YxDepartmentLeader record);

    YxDepartmentLeader selectByPrimaryKey(Integer id);

    //删除用户部门领导
    int deleteLeaderByUserId(YxDepartmentLeader record);

    int updateByPrimaryKeySelective(YxDepartmentLeader record);

    int updateByPrimaryKey(YxDepartmentLeader record);

    YxDepartmentLeader selectByEntity(YxDepartmentLeader entity);

    List<YxDepartmentLeader> selectByDeptIds(@Param("userId")Integer userid,@Param("list")List<Integer> list);

    Set<Integer> queryUserIdListByDeptIds(@Param("set")Set<Integer> set);

    int countByUserId(@Param("userId")Integer userid);

}